package com.comac.print.component.app.command;

import com.alibaba.cola.dto.Response;
import com.comac.print.component.app.common.PrintCommon;


/**
 * @Description
 * @Author yy
 * @Date 2021/4/19 14:25
 */
public abstract class CommandExe<T extends PrintCommon> {

    /**
     * 业务执行逻辑
     * @param t
     * @return
     */
    public abstract Response execute(T t);
    /**
     * 业务执行逻辑
     * @param t
     * @return
     */
    public abstract Response executeSync(T t);
    /**
     * 执行
     * @param t
     * @return
     */
    public Response doExecute(T t){

        return execute(t);
    }

}
